package com.sptpc.learnspring.model;

import java.io.Serializable;

public class OrderDrinkKey implements Serializable {
    private Long drinkOrderId;

    private Long itemsId;

    private static final long serialVersionUID = 1L;

    public Long getDrinkOrderId() {
        return drinkOrderId;
    }

    public OrderDrinkKey withDrinkOrderId(Long drinkOrderId) {
        this.setDrinkOrderId(drinkOrderId);
        return this;
    }

    public void setDrinkOrderId(Long drinkOrderId) {
        this.drinkOrderId = drinkOrderId;
    }

    public Long getItemsId() {
        return itemsId;
    }

    public OrderDrinkKey withItemsId(Long itemsId) {
        this.setItemsId(itemsId);
        return this;
    }

    public void setItemsId(Long itemsId) {
        this.itemsId = itemsId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", drinkOrderId=").append(drinkOrderId);
        sb.append(", itemsId=").append(itemsId);
        sb.append("]");
        return sb.toString();
    }
}